GXPrGeneral
QuickDraw GX sends theGXPrGeneral
message when an application that supports the Macintosh Printing Manager calls thePrGeneral
function. You can override theGXPrGeneral
message to customize the handling of thePrGeneral
function. Your override of theGXPrGeneral
message must match the following formal declaration:
OSErr MyPrGeneral (Ptr aPtr);
aPtr
- A pointer to the data block used by
GXPrGeneral
.- function result
- An error code. The value
noErr
indicates that the operation was successful.DESCRIPTION
The default implementation of this message uses the customization ('cust'
) resource to find the supported resolution for the printer. It also uses any available resolution ('resl'
) resources. You can override this message if you need to add any special handling to the processing ofGXPrGeneral
calls by your printer driver.SPECIAL CONSIDERATIONS
You never send theGXPrGeneral
message yourself.You almost always forward the
GXPrGeneral
message so that the default implementation can perform its operations.RESULT CODES
gxSegmentLoadFailedErr A required code segment could not be found,
or there was not enough memory to load it.gxPrUserAbortErr The user has canceled printing. SEE ALSO
ThePrGeneral
function is described in Inside Macintosh: Imaging With QuickDraw.The customization and resolution resources are described in the chapter "Printing Resources" in this book.
Main | Page One | What's New | Apple Computer, Inc. | Find It | Contact Us | Help